Page 4 of 8
Re: check_snmp, performance graph and graph explorer discrep
Posted: Tue Aug 04, 2015 8:50 am
by tgriep
In the XML file, that check is still using the incorrect template. Below is the template and the check it is still using.
Code: Select all
<TEMPLATE>check_xi_service_snmp</TEMPLATE>
<NAGIOS_CHECK_COMMAND>check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!</NAGIOS_CHECK_COMMAND>
Can you edit that service check and delete the template assigned to it. Save it out and apply the config.
After that, delete the xml and rrd files and see if the custom check is applied to those service's and that the data is graphing correctly.
If you open the xml file, this is what the template and check should look like for example.
Code: Select all
<TEMPLATE>check_snmp_gauge</TEMPLATE>
<NAGIOS_CHECK_COMMAND>check_snmp_gauge! -P 2c -C public -o 1.3.6.1.2.1.4.31.1.1.35.1 -w 100 -c 110 -l test!!!!!!!</NAGIOS_CHECK_COMMAND>
Re: check_snmp, performance graph and graph explorer discrep
Posted: Tue Aug 04, 2015 6:18 pm
by Box293
With pnp4nagios, the "TEMPLATE" is taken from the name of the nagios command, in this case check_xi_service_snmp.
If you want to change the name of the TEMPLATE:
CCM
Commands
Duplicate the check_xi_service_snmp command
Rename it to check_xi_service_snmp_alt
Apply Config
Edit the service in question
Change the command used to check_xi_service_snmp_alt
Apply Config
After the next check, the XML file should be updated to check_xi_service_snmp_alt.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Wed Aug 05, 2015 4:58 am
by iptribe
I am not sure why it is still using check_xi_service_snmp command.
This is what I currently have configured:
No template is assigned to the service.
2.PNG
I am using check_xi_service_snmp_gauge command instead of check_xi_service_snmp.
1.PNG
Changed it to check_snmp_gauge but still the same.
3.PNG
Deleted RRD and XML files. The new XML file generated still using check_xi_service_snmp.
Code: Select all
<NAGIOS_CHECK_COMMAND>check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!</NAGIOS_CHECK_COMMAND>
Re: check_snmp, performance graph and graph explorer discrep
Posted: Wed Aug 05, 2015 10:06 am
by tgriep
If the template isn't applied to that service, then the host is applied to the template and needs to be removed from there.
Go in to Core Config Manager > Service Templates and edit this template
And remove that host / service from there.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Wed Aug 05, 2015 5:52 pm
by Box293
Very strange.
Can you have a look in the file /usr/local/nagios/var/objects.cache and find the Active Sessions service and post that definition here please.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Wed Aug 05, 2015 10:00 pm
by iptribe
tgriep wrote:If the template isn't applied to that service, then the host is applied to the template and needs to be removed from there.
Go in to Core Config Manager > Service Templates and edit this template
And remove that host / service from there.
There are no hosts nor services attached to xiwizard_snmp_service template.
Box293 wrote:Very strange.
Can you have a look in the file /usr/local/nagios/var/objects.cache and find the Active Sessions service and post that definition here please.
Code: Select all
define service {
host_name RCS-PROD-SSC-01
service_description Active Sessions
check_period 24x7
check_command check_xi_service_snmp!-P 2c -o globalStatActiveCalls.summaryPeriod1Current5Minutes -m /usr/share/snmp/mibs/perimeta.mib -c 10000!!!!!!!
event_handler xi_service_event_handler
contacts nagiosadmin
notification_period xi_timeperiod_24x7
initial_state o
importance 0
check_interval 5.000000
retry_interval 10.000000
max_check_attempts 10
is_volatile 0
parallelize_check 1
active_checks_enabled 1
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options a
freshness_threshold 0
check_freshness 0
notification_options a
notifications_enabled 1
notification_interval 60.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
}
Re: check_snmp, performance graph and graph explorer discrep
Posted: Wed Aug 05, 2015 11:49 pm
by Box293
Something is not quite right here, can you email
[email protected] to generate a ticket.
Please send us your system profile in that email:
Click the Admin menu
System Config > System Profile
Click the Download Profile button and send us that file
We can drill down into the configs and see what is happening. The profile can contain sensitive information so we ask the customers not to upload it to the forums.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Thu Aug 06, 2015 12:12 am
by iptribe
Box293 wrote:Something is not quite right here, can you email
[email protected] to generate a ticket.
Please send us your system profile in that email:
Click the Admin menu
System Config > System Profile
Click the Download Profile button and send us that file
We can drill down into the configs and see what is happening. The profile can contain sensitive information so we ask the customers not to upload it to the forums.
Email sent.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Thu Aug 06, 2015 8:47 am
by tgriep
Did you get a response with a ticket number when you sent the email to
[email protected]? I could not find it.
Re: check_snmp, performance graph and graph explorer discrep
Posted: Fri Aug 07, 2015 5:41 am
by iptribe
Hi tgriep,
I did, but apparently, my email was rejected as stated in the response...
Important Note:
Email support for Nagios XI is only available to customers with an active support/maintenance plan. Your email was automatically rejected because our system shows that you are not subscribed to a support/maintenance plan.